using System;
using System.Xml;
using System.Xml.Serialization;
using System.Collections.Generic;

namespace Dashboard
{
	public class ClueList : List<Clue>
	{
		public bool Contains (string type)
		{
			return (this [type] != null);
		}

		public Clue this [string type] {
			get {
				foreach (Clue clue in this) {
					if (clue.Type == type)
						return clue;
				}
				
				return null;
			}
		}
	}
}